package com.zklh.book.system.view;

import java.util.List;

/**
 * 操作选项
 *
 * @author 坐看落花
 * @version 1.0
 * @date 2021/3/21 9:51
 */
public class OperationOption {

    /**
     * 操作指令, 这里是使用 0,1,2,3
     */
    private int code;

    /**
     * 操作指令描述
     */
    private String desc;

    /**
     * 指令可以被哪些角色使用
     */
    private List<String> roles;

    public OperationOption(int code, String desc, List<String> roles) {
        this.code = code;
        this.desc = desc;
        this.roles = roles;
    }

    public OperationOption() {
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public List<String> getRoles() {
        return roles;
    }

    public void setRoles(List<String> roles) {
        this.roles = roles;
    }
}



